package com.lhg.serve;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class HttpResponse implements Serializable {
    private String protocol = "http/1.1";

    private String code = "200";

    private String Message = "ok";

    private Map<String,String> header = new HashMap<>();

    private String body;

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return Message;
    }

    public void setMessage(String message) {
        Message = message;
    }

    public String getHeader(String key) {
        return header.get(key);
    }

    public void setHeader(String key,String value) {
        this.header.put(key, value);
    }


    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public Map<String,String> getHeaders() {
        return header;
    }
}
